<!--
 * @Author: liyaqi liyaqi0126@163.com
 * @Date: 2024-09-05 16:20:36
 * @LastEditors: liyaqi liyaqi0126@163.com
 * @LastEditTime: 2024-09-05 16:21:30
 * @FilePath: \FinancialLeasing-FG-FLCompany\src\views\systemConfig\theThirdPlatform\smsService.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="app-container">

        <div style="color: rgb(64, 158, 255);margin-bottom: 20px;">当前状态：{{ currentStatus }}</div>
        
        <div style="background-color: rgb(242, 242, 242);height: 260px;width: 100%;display: flex; justify-content: center; align-items: center;">
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" :rules="rules" label-width="100px">
                <el-form-item label="appKey:" prop="appKey">
                    <el-input v-model="queryParams.appKey" placeholder="请输入appKey" />
                </el-form-item>
                <br />
                <el-form-item label="appSecret:" prop="appSecret">
                    <el-input v-model="queryParams.appSecret" placeholder="请输入appSecret" />
                </el-form-item>
                <br />
                <el-form-item style="padding-left: 120px;">
                    <el-button type="primary" size="mini" @click="handleSave">更新配置</el-button>
                </el-form-item>
            </el-form>
        </div>
  
      
    </div>
</template>
  
<script>
import { listRole } from '@/api/system/role'

export default {
    name: 'smsService',
    dicts: [],
    data() {
        return {
            // 遮罩层
            // loading: true,
            loading: false,
            // 信调表格数据
            dataList: [],
            // 当前状态
            currentStatus: '未配置',
            // 查询参数
            queryParams: {
                pageNum: 1,
                pageSize: 10,
                appKey: undefined,
                appSecret: undefined
            },
            // 表单校验
            rules: {
                appKey: [
                    { required: true, message: 'appKey不能为空', trigger: 'blur' }
                ],
                appSecret: [
                    { required: true, message: 'appSecret不能为空', trigger: 'blur' }
                ]
            }


        }
    },
    created() {
    //   this.getList()
    },
    methods: {
        /** 查询角色列表 */
        getList() {
            this.loading = true
            listRole(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
                this.dataList = response.rows
                this.loading = false
            }
            )
        },

        /** 保存按钮操作 */
        handleSave() {

        },
      

    }
}
</script>